package org.example.hansp.collection_.map_;

import java.util.Comparator;
import java.util.TreeMap;
@SuppressWarnings({"all"})
public class TreeMap_ {
    public static void main(String[] args) {
        TreeMap tm = new TreeMap();
       /* TreeMap tm = new TreeMap(new Comparator<String>() {
            public int compare(String o1, String o2) {
                return o2.compareTo(o1);
            }
        });*/
        tm.put("A", "B");
        tm.put("B", "C");
        tm.put("C", "D");
        tm.put("0", "E");
        System.out.println(tm);
    }
}
